package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道后台操作日志表
 * </p>
 *
 * @author AppiJ
 * @since 2020-04-15
 */
@TableName("channel_operation_log")
public class ChannelOperationLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * ip地址
	 */
	private String ip;

	/**
	 * 操作描述
	 */
	@TableField(value = "`describe`")
	private String describe;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public ChannelOperationLog() {
	}

	public ChannelOperationLog(Integer userId, String ip, String describe) {
		this.userId = userId;
		this.ip = ip;
		this.describe = describe;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
